import { UPDATE_LOADING, UPDATE_DIRECTION } from './../motation_types'

const state = {
  isLoading: false,
  direction: 'forward'
}

const mutations = {
  [UPDATE_LOADING] (state, isLoading) {
    state.isLoading = isLoading
  },
  [UPDATE_DIRECTION] (state, direction) {
    //console.log(state.direction)
    state.direction = direction
     //console.log(state.direction)
  }
}

export default {
    state,
    mutations
}